package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.entites.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName PaymentDao
 * @Author VCR
 * @Date 2021/12/20 20:39
 * @Version 1.0
 */
@Mapper
public interface PaymentDao {
    /**
     * 新增数据
     *
     * @param payment 实例对象
     * @return 影响行数
     */
    int insert(Payment payment);

    /**
     * 根据Id查询
     *
     * @param id
     * @return
     */
    Payment queryPaymentById(Long id);
}
